import request from "/@/utils/request"
// 获取表格数据
export function fetchList(query) {
    return request({
        url: '/om/omequipmentmodel/page',
        method: 'get',
        params: query
    })
}
// 新增
export function addObj(obj) {
    return request({
        url: '/om/omequipmentmodel',
        method: 'post',
        data: obj
    })
}
// 删除
export function delObj(id) {
    return request({
        url: '/om/omequipmentmodel/' + id,
        method: 'delete'
    })
}
// 修改
export function putObj(obj) {
    return request({
        url: '/om/omequipmentmodel',
        method: 'put',
        data: obj
    })
}
//批量删除
export function delAllObj(obj) {
    return request({
        url: '/om/omequipmentmodel/removeByIds',
        method: 'delete',
        data: obj
    })
}
// 修改保养项
export function putItemObj(obj) {
    return request({
        url: '/om/omequipmentmodel/editItems',
        method: 'put',
        data: obj
    })
}
// 删除保养项
export function delItemObj(id) {
    return request({
        url: '/om/omequipmentmodel/deleteById/' + id,
        method: 'delete'
    })
}
// 新增保养项
export function addItemObj(obj) {
    return request({
        url: '/om/omequipmentmodel/saveItems',
        method: 'post',
        data:obj
    })
}
